﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Compiler
{
    public class EbnfMeta : EbnfNode
    {
        public string lexeme;

        public EbnfMeta(string lexeme)
        {
            this.lexeme = lexeme;
        }

        public override List<Symbol> ConstructProductionTail(Ebnf2GrammarConvertData data)
        {
            return new List<Symbol> { data.GetNonterminal(lexeme) };
        }

        public override string ToString()
        {
            return lexeme;
        }
    }
}
